package com.ming.feign;

import com.ming.domain.UserAddr;
import com.ming.feign.hystrix.OrderMemberFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author:何元才
 * @Desc:
 * @data:2021-04-09 15:20
 */
@FeignClient(value = "member-service",fallback = OrderMemberFeignHystrix.class)
public interface OrderMemberFeign  {

    /**
     * 获取用户的默认收货地址
     *
     * @param userId
     * @return
     */
    @GetMapping("p/address/getUserDefaultAddr")
    UserAddr getUserDefaultAddr(@RequestParam String userId);


}